import React from 'react';
import { selectLayouts } from '../utils/selectLayouts';
import { ConfigProvider } from "antd";
import zhCN from "antd/es/locale/zh_CN"
export default function index({ children, location }) {
    const Container = selectLayouts(location.pathname);
    return (
        <ConfigProvider locale={zhCN}>
            <Container>{children}</Container>
        </ConfigProvider>
    )
}
